dc13 - 1.0

DebConf13

Speakers
martin f. krafft
Schedule
Day DebConf day 3 (2013-08-13)
Room Main talk room
Start time 14:30
Duration 00:45
Info
ID 1048
Event type lecture
Track Debian for the cloud
Language en
Feedback

Recursive node classification for system automation

Flexible infrastructure inventory management explained

In this lecture, I will give an introduction of reclass, a tool to manage infrastructure inventories for automation tools like Salt and Puppet, which works radically different than what you know from these tools. My hope is to get you as excited as I am, because reclass opens up a whole new paradigm to approach system automatioon and remote administration.

reclass is an "external node classifier" (ENC) I wrote over years of using automation tools like Puppet, Salt and Ansible, which can be used across all these tools. It is also a stand-alone tool for merging data sources recursively, although I have no other use cases yet.

The purpose of an ENC is to allow a system administrator to maintain an inventory of nodes to be managed, completely separately from the configuration of the automation tool. Usually, the external node classifier completely replaces the tool-specific inventory (such as site.pp for Puppet, extpillar/mastertops for Salt, or /etc/ansible/hosts).

reclass allows you to define your nodes through class inheritance, while always able to override details further up the tree (i.e. in more specific nodes). Think of classes as feature sets, as commonalities between nodes, or as tags. Add to that the ability to nest classes (multiple inheritance is allowed, well-defined, and encouraged), and piece together your infrastructure from smaller bits, eliminating redundancy and exposing all important parameters to a single location, logically organised.